<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p></p>
    <script>
        var directs = [
            {name:"吴京",id:1001},
            {name:"章子怡",id:1001},
            {name:"沈腾",id:1001},           
        ]
        var arr = []
        for(var i = 0;i<directs.length;i++)
        {
            console.log(directs[i].name)
            arr.push(directs[i].name)
        }
        var str = arr.join("/")
        console.log(str)
    </script>
</body>
</html>